'Declaration Public Overloads Function AddChart( _ ByVal chartType As ChartType, _ ByVal topLeftCornerCell As WorksheetCell, _ ByVal topLeftCornerPosition As PointF, _ ByVal bottomRightCornerCell As WorksheetCell, _ ByVal bottomRightCornerPosition As PointF, _ Optional ByVal chartInitializer As Action(Of WorksheetChart) _ ) As WorksheetChart
Exception | Description |
---|---|
System.ComponentModel.InvalidEnumArgumentException | chartType is not defined in the Infragistics.Documents.Excel.Charts.ChartType enumeration. |
System.InvalidOperationException | topLeftCornerCell or bottomRightCornerCell is null. |
System.InvalidOperationException | topLeftCornerCell and bottomRightCornerCell belong to different worksheets or a worksheet other than the worksheet to which this collection belongs. |
System.InvalidOperationException | if a chart is being added to the Shapes collection of another Chart is null. |
System.InvalidOperationException | if a Workbook.CurrentFormat doesn't support Chart mofications, e.g. 'Excel97To2003' or 'Excel97To2003Template'. |
Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2